import 'dart:convert';

import 'package:enterprise_v6_app/generated/json/base/json_field.dart';
import 'package:enterprise_v6_app/generated/json/gate_equipment_entity.g.dart';
export 'package:enterprise_v6_app/generated/json/gate_equipment_entity.g.dart';

/// 闸机实体类
@JsonSerializable()
class GateEquipmentEntity {

	GateEquipmentEntity();

	factory GateEquipmentEntity.fromJson(Map<String, dynamic> json) => $GateEquipmentEntityFromJson(json);
	late String companyCode = '';
	late String createBy = '';
	late String createById = '';
	late String createDate = '';
	late String deleted = '';
	late String deviceName = '';
	late String deviceNo = '';
	late String equipmentBrand = '';
	late String equipmentClassification = '';
	late String equipmentModel = '';
	late String equipmentPosition = '';
	late String equipmentSpecifications = '';
	late int equipmentStatus = 0;
	late String equipmentType = '';
	late String id = '';
	late int inOrOut = 0;
	late String latitude = '';
	late String longitude = '';
	late String regionId = '';
	late String regionLevel = '';
	late String regionName = '';
	late String supplier = '';
	late String telephone = '';
	late String updateBy = '';
	late String updateById = '';
	late String updateDate = '';
	late int whetherToInspect = 0;
	late int allocatedQuantity = 0;
	late int enteredQuantity = 0;

	Map<String, dynamic> toJson() => $GateEquipmentEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}
